added code for change password functionality