Cleanup and bug fixes for student adding/editing