update manatory fields for teacher and student