changed edit and update method in registrations controller