Removing notices checkCredentials and codeRegister

These function doesn't receive any parameters, so some variables was
used
but not initializated before.