Fixed last validation error; implemented teacher class and migration