added login/logout functionality using flask-login module. if user is signed in, logout link is present and will redirect to login screen on logout