I trying to do simple registration form with error message for wrong data format. Till now I have index page with form, submit button that send the data to .js file where I make