consolidate logout function redirect in auth service