updated hibernate and added validator