Add float validation for input