Add check email function.