trainer registration bug fixed