modified change password code