init db task
- fix register flow
- send email on register