Implemented login and logout pages