Fixes login issue