login/logout buttons appearing at the right times, checks if token already exists in browser and redirects to dashboard if so