Typos fixed as well as incorrectly commented function name

Also, I'm not sure what ``$identity`` is doing there because you don't have that before you register.