Read validation added
Updated read code