Fixed a broken authentication and sessions system