Changed class adding and student/teacher registration methods to return boolean on success/failure.
TODO: make better server-side validation