File format validation added