fixed login button pressed too many times bug.