form submit instead of button click for login