remove invalid credentials