connecting to DB and improved validator