Add validator and correct equation