add a callback in user model, I had previously added validations and migrations.ref #2