Implemented VALIDATION and adding of a new detail