better login logic and shorter tabbed navbar