Fix form creation with invalid route