Added some base user controllers

- Implemented invitation code creating
- Fixed Js menu bug