added required field to login and register