Fixes a login issue