comment out validate and remove keep alive function as it is not needed.