validate floats entered by user