Added check email functionality.