Added Registering Form

added functionality to the registration form and validation