navbar login method tweak