bug of login and register nav button