checkUsername & createCORSRequest