There is no error:
test@gmail.com.com.com
is a valid format for an email address. For example
public.enquiries@homeoffice.gsi.gov.uk
is a perfectly valid email address - it will even work!
The only way to check if an email is truely valid, is to send it a message and see if the correct person responds...