Fix 502 on login for new users

Change-Id: I137e068561db712cdf9e77d9e87be13d32828427