fix: correct validation of minimum and maximum ages