OPAL-2343 - Added validation for existing attributes
OPAL-2343 - trimed user input in case the values contained only blanks
OPAL-2343 - refactored
Merge pull request #484 from kazoompa/bug-OPAL-2343

OPAL-2343 - Added validation for existing attributes