Added logic to hide login/register/logout based on the visitors login status