Refactoring
Add register func
Add get profile func