Fix reset & confirm emails by switching var

Closes #387