added form validator for float