Added email validation to creating user.