Refactored exception handling and logging.
Removed middle name from the registration contract.