Added basic log-in/log out functionality