added login functionality. next add log out button.