handle empty forms more gracefully