fixed bugs: guest email cookie is removed and logged in user cannot visit login pages