Add migration validation and the session condition