Fixed bug where signout on home page gave an error

Fixes #28