adds login and nav if block