hook up the invite form to the api

Signed-off-by: Marc MacLeod <marbemac@gmail.com>