AMENDMENT NO. 2 TO Securities Purchase Agreement