add check to see if user is null