add before action to users controller for edit and update