complete the function of record account