has_field 'username' => (input_class => 'validate[required,ajax[register_validate]]', label => 'Username', required => 1, unique => 1);
has_field 'password' => (input_class => 'validate[required]', type => 'Password', required => 1);
has_field 'password_confirm' => (input_class => 'validate[required,equals[password]]', type => 'PasswordConf', required => 1);
-has_field 'email' => (input_class => 'validate[custom[email]]', type => 'Email', label => 'Email address');
has_field 'submit' => (type => 'Submit', value => 'Register');
has_field 'reset' => (type => 'Reset', value => 'Reset');