You must login as a client before you can use this function.