MajP, the function does not logout the person if you don't replace it with another login person. When logout it returns to the login form though which is what i want. No errors.