added exampele of logged user controller