changed syntax to check user existence