solve a bug to the modalLogin