Added checking for doRegister and set new array keys for validate method