fixed a bug with registration email