HAL-526 / BZ 1167525: Fix add mail server dialog

Username and password aren't required attributes
Fix code which validates existing mail servers