Fixed error in migration
Add registration email and add the flash msg capability