added format validation for email on user model