Prevented access to nav when user is not logged in