Merge pull request #20 from m3hackathon6/feature/register

Feature/register done
fixed a bug in id generation