critical fixes preventing login