corrected user existence check