fix crash when no user credentials exist