added input validation for age input text box