Validating email address in c