Added Data Validation for Frequency and Amplitude