fix lots of infrastructure stuff, fix login error with mismatched email&pw