fix anonymous login part