fixed bug when clicking login