emails were sending multiple times, also fixed login