fixed a bug with user existence checking, attempt 2