fixes error checking for date of birth