Call to a member function fetch_userinfo() on null