Added security for anonymous users