created one function to verify both husband and wife