add redirects for errors and canceled payments, and fix login/logout bug