fixed bugs with closing an account
FIxed bugs for close account function