Fixed email checking bug.