error management for logged user