Update codeRegister, checkCredentials, etc...

This aren't fixes, only improves. This is how the official apk does.