switch the arguments to the redirect function because Express expects them the other way around