Fixed user creation and permissions