implemented login and logout pages