fix the error of login validate