fixed bug when people open the page unauthenticated