Adding required attribute & corresponding validation to email/password field