added login and log out view