Fixed check for existing user