Fix coursework submission response and login errors