Implemented registration form validation and added an appropriate route for this