fixing buggy things with login