fix changePassword authenticate error check