navigation bar for frontend now can detect user login status