Implemented change password functionality for logged-in users