Raise a proper exception during the user creation.