check if value can be assigned to form field