Fixed login, logout and hided dashboard if not logged in (before, if we wrote /dashboard in the url dashboard opened