added validation for email field to enter a registered email