Email checking function

checks for the .com at the end as stated on the exercise.