Change "functions.php" to "core.php"
Separate validation methods from core.php