Update registration.cpp