fixed little bug with security for unlogged users