Add exception for invalid credentials