Move template to templates directory
Add helper to generate url
Restructure the user related classes
Improve email validation