Finished java based code

- Finished register command (only accepts valid email)
- Added confirm/cancel commands (only available if register was
triggered first)