UserManager: user can not delete the last profile & added logout after delete logged user