added a check to ensure user is a student