demo application for registration in api