Make email field of type email and fix a PHP notice.