login and logout submission