added 'post' to the regester call