Added value validation for AtmoOrb SetupForm elements and some code cleanup