fixed some bugs about changePassword