Added some validation to the registration form