Added errors to functions.php