db validator to session validator