Fixes user aunthentication.