Fix for "white screen" on failed login