Added more validations and captured validation errors before raising exception. Updated CSS styling for messages