Fixes user login.