Format and Validate Numerical Values  in Input Fields