fix checkEmail bug