Added file validation for open file menu item