created function to check email..