added error message for missing or invalid input for registering the user.