createAd and CreateAccount function (without encryption) accomplished
fixed index problem