Validation for memory storage