added option to validate blockchain. working on validation functionality