Adding the login and logout functionality
Adding only tournaments if the user is logged in