Fix a bug in parameter checking.
Change class name from FormResult to Result.