creating login form and logout option