Repetitive code to find registration by id. Check https://github.com/AmitPatel-BoTreeConsulting/HealersConnnect/blob/development_enhancement_17/app/controllers/registrations_controller.rb#L4