ActionErrors errors = new ActionErrors( );
Account account = getCustomer( ).getAccount( );
String userId = account.getUserId( );
String passwd = account.getPassword( );
checkNotEmpty( userId, "userId_required", errors );
checkLength( userId, 4, "userId_length", errors );
checkNotEmpty( passwd, "password_required", errors );
checkLength( passwd, 4, "password_length", errors );
checkNotEmpty( _customer.getEmail( ), "email_required", errors );
checkNotEmpty( _customer.getCreditCardType( ), "ccType_required", errors );
checkNotEmpty( _customer.getCreditCardNumber( ), "ccNumber_required", errors );
checkNotEmpty( _customer.getCreditCardExpiryDate( ), "ccExpiryDate_required", errors );
checkCreditCardDateFormat( _customer.getCreditCardExpiryDate( ), "ccExpiryDate_bad_format", errors );
return errors;