Fix check for user existence