fixes bug where new user is not returned