Adds return values from reg_validate() and catches the values in register()