added extra check for user creation