Refactored password changing to separate action