Corrected wrong navbar behavior of login menu