Error Handling for Registration