Add autodetection for logged user