Few Bug Fixes

Lets not use mt_rand but Use uniqid()