added changing passwords/emails, made some more shit global.