Redirect to login when adding trees. Fixes #297.