Reworked management.

Added validators
Reworked teacher-management