add account page backend function + error handling