added input file validation

Before getting JSON data from file, as initial check - only file
extension is been validated.
Later need to add JSON validation which will validate file content.