Added filename validation