Added check on empty string to validation attributes.