fixes authentication and auth stuff

Fixes show / hide user information and login/register links.