Debug checkEmail function