added validation to the ar model