Fix issue with non logged users and showing the register button

Fix issue with non logged users and showing the register button