Added more custom validation.
Custom validation for transaction model.