Added stuff for anonymous login.
Update to reflect not tested with anonymous settings