Fix site reload on login. Closes #283