Added more robust validation to login and more fields to register page