adding email regex validation to user model