add functionality for changePassword