made an age check function