fixing validation for integer and real division