1. Alert errCode instead of errMessage for register