added check for married before 18