added more checks to unique value validation - required options, added tests, removed trim from value to be tested, as it is not required.
Value would be received as trimmed from views