added functionality for changing password