fix log-in for teacher and student, add log-out button