Finalized functionality for adding students and appointments