Changed POST class/student to be class/invite and made other adjustments