add rake task and fix email confirmation templates