Donezo part II

Fixed new bugs that cropped up after adding authentication