Fixing issues with registration resource update method.
Rewriting faulty logic.