Make sure the user is not None.