added email format validation and email uniqueness validation to model