added put method to user-controller