log in as user on submit
log in on the main page