Use macro on register
Add email validator