add spec and code for registration validation error if email is invalid