fix checking if user exists