initialize $register[] variable in validation() method