added file validation and display small