fixed members register and model in api, added register page and wired t...

...o register api action