Add validations to LogEntry. Fixed log_entries association in Wine.