Adds a router for login session. Adds a view for register teacher.