fix password checking error