Register book with registrationId

Show and saves registrationID
fixed bug in Main