improves navbar login and signup behavior