Added  "use strict" and added "REGISTER" as the token endpoint