Fixes login (incomplete)