Revert "optimize code in teacher app."

This reverts commit e63f90d7475a510495468dc588b96a6aac70b5da.
Revert "Some changes in account app."

This reverts commit 63f3207780ba597a0082b876c58696c992f6f25a.