Updated validator for postal code