reworked validations when adding/ editing contacts