Add Exception handling for invalid creds error