helper method to remove user account, also fixed the empty user problem