hopefully fix "headers already sent" in submitAssessment
when accessing the login page while logged in, log out then redirect to login