Fixing minor issues with redirection and logout url.