added code for new trainer registration