fixing bugs in accounts model and accounts form in new.html