check that the user is defined