fixes login issue