Throw exception when creating new user

When the required entity is not in the database, throw an error rather
than assuming that they are.