params['admin'])) { // admins have special rules $this->User->setValidation('admin'); } } function register() { $this->User->setValidation('register'); // here goes the code for registering a new account } function password() { $this->User->setValidation('changePassword'); // here goes the code to allow the users change their own password } } ?>