I m dating service c programming validating user input