instructor registration functioning, with error callback on duplicate username; needs fine-tuning