check if the user exists first