Every defendant not served with a summons may, at any time before final judgment against him, appear and plead to the merits of the action on such terms as the court may direct.