enabled the join button when both the fields are valid