Added login/logout functionality to the application