apply validation on professors and fix minor issue