update rainFall class with input validation