change .click for login  to a onsumbmit