added some redirects after sign in and out