Fixing role check in user creation.