fix to typo that prevented login and log out from working