better error msg when logged in failed