removed code for checking a user variable is null, as it can't be null