title: Magento First name cannot be empty,invalid email address
body: <p>On checkout there is an error:</p>
  
  <p>"The first name cannot be empty.,Invalid email address"". These fields are filled!</p>
  
  <pre><code>public function validate()
  {
      $errors = array();
      if (!Zend_Validate::is( trim($this-&gt;getFirstname()) , 'NotEmpty')) {
          $errors[] = Mage::helper('customer')-&gt;__('The first name cannot be empty.');
      }
  
      if (!Zend_Validate::is( trim($this-&gt;getLastname()) , 'NotEmpty')) {
         $this-&gt;setLastname();
      }
  
      if (!Zend_Validate::is($this-&gt;getEmail(), 'EmailAddress')) {
           $errors[] = Mage::helper('customer')-&gt;__('Invalid email address "%s".', $this-&gt;getEmail());
      }
  
      $password = $this-&gt;getPassword();
      if (!$this-&gt;getId() &amp;&amp; !Zend_Validate::is($password , 'NotEmpty')) {
          $errors[] = Mage::helper('customer')-&gt;__('The password cannot be empty.');
      }
      if (strlen($password) &amp;&amp; !Zend_Validate::is($password, 'StringLength', array(6))) {
          $errors[] = Mage::helper('customer')-&gt;__('The minimum password length is %s', 6);
      }
      $confirmation = $this-&gt;getConfirmation();
      if ($password != $confirmation) {
          $errors[] = Mage::helper('customer')-&gt;__('Please make sure your passwords match.');
      }
      $entityType = Mage::getSingleton('eav/config')-&gt;getEntityType('customer');
      $attribute = Mage::getModel('customer/attribute')-&gt;loadByCode($entityType, 'dob');
      if ($attribute-&gt;getIsRequired() &amp;&amp; '' == trim($this-&gt;getDob())) {
          $errors[] = Mage::helper('customer')-&gt;__('The Date of Birth is required.');
      }
      $attribute = Mage::getModel('customer/attribute')-&gt;loadByCode($entityType, 'taxvat');
      if ($attribute-&gt;getIsRequired() &amp;&amp; '' == trim($this-&gt;getTaxvat())) {
          $errors[] = Mage::helper('customer')-&gt;__('The TAX/VAT number is required.');
      }
      $attribute = Mage::getModel('customer/attribute')-&gt;loadByCode($entityType, 'gender');
      if ($attribute-&gt;getIsRequired() &amp;&amp; '' == trim($this-&gt;getGender())) {
          $errors[] = Mage::helper('customer')-&gt;__('Gender is required.');
      }
  
      if (empty($errors)) {
          return true;
      }
      return $errors;
  }
  </code></pre>
  
  <p>Please help me..</p>