fixed user creation and update