fixing issues that prevents login