Added validation to login
Added validation to the registration form