Prevent 500 error on sign-in page