Recreational drones to be registered, pilots accredited under law change