updated templates and DB schema
added teacher login