add index in user creation and edit