Removed dead code. Validation and hashing.