Trim email value before validating

Email validation was failing on safari due to trailing spaces