This is the code for user approval by instructor