Store previous registration.
Added a proper error step and error messages.
Merge pull request #2 from guilherme-pg/persist-registration

Store previous registration.