Added validator and registration in global.php