FIRST AMENDMENT TO CREDIT AGREEMENT AND REGISTRATION RIGHTS AGREEMENT