finish owner logout functionality