Fix bug that permits visitors to see register button