Change if condition in checking if user exists