requirements of legality of subject matter and proper form