Implement validation logic on custom objects and then bind to them(Mouse-over to see the validation error message).