' method='post'>

All fields are mandatory:

input('Users/username', array('size'=>'40')); echo $form->error('Users/username', 'Minimum 8 characters') ?>
input('Users/password', array('size'=>'40')); echo $form->error('Users/password', 'Minimum 8 characters') ?>
input('Users/password_two', array('size'=>'40')); echo $form->error('Users/password_two', 'Minimum 8 characters') ?>
input('Users/email', array('size'=>'40')); echo $form->error('email', 'Users/Enter valid email address') ?>
input('Users/email_confirm', array('size'=>'40')); echo $form->error('Users/email_confirm', 'Enter valid email address') ?>

//***************************************************************************8 function register() { if(!empty($this->params['form'])) { if($this->User->save($this->params['form'])) { $this->redirect(array('controller' => 'users', 'action' => 'register_confirm')); //need to figure out how to affect a 1-to-1 table relationship } else { $this->set('errorMessage', 'Please correct errors below.'); $this->render(); } } else { $this->render(); } } //******************************************************************** class User extends AppModel { var $name = 'User'; var $validate = array ( 'username' => '/[a-z0-9]{8}/', 'password' => '/[a-z0-9]{8}/', 'email' => VALID_EMAIL ); //here you may also define your own functions e.g. make inactive etc }