added "required" and "optional" in registrationviewcontroller protocol declaration.