Handle login errors.