added minor production settings
added email sending and basic register tests