added checkEmail