fix form rules