Fixes user not being set after log in