Moved validation to configuration.php

Moved validation to configuration.php