added login/logout feature; made some changes to the views (depending on logged in/out)