before filter for logged user