validation for first input