Added validation for filename setting (have to end with .php).