validate = array( 'username' => array( 'required' => array( 'method' => VALID_NOT_EMPTY, 'message' => 'You have not entered a username.', ), 'word' => array( 'method' => VALID_WORD, 'message' => 'The username you entered contains invalid characters.' ), 'unique' => array( 'method' => VALID_UNIQUE, 'message' => 'The username you entered is already in use.' ), 'length_within' => array( 'method' => VALID_LENGTH_WITHIN, 'message' => 'Username should be between 6 to 50 characters long.', 'parameters' => array('min' => 6, 'max' => 50) ), ), 'email' => array( 'required' => array( 'method' => VALID_NOT_EMPTY, 'message' => 'You have not entered an e-mail address.', ), 'email' => array( 'method' => VALID_EMAIL, 'message' => 'The e-mail address you entered is not in proper format.' ), 'unique' => array( 'method' => VALID_UNIQUE, 'message' => 'The e-mail address you entered is already in use.' ), 'confirmed' => array( 'method' => VALID_CONFIRMED, 'message' => 'The e-mail addresses you entered does not match its confirmation.' ), ), 'password' => array( 'required' => array( 'method' => VALID_NOT_EMPTY, 'message' => 'You have not entered a password.', ), 'length_within' => array( 'method' => VALID_LENGTH_WITHIN, 'message' => 'Password should be between 8 to 50 characters long.', 'parameters' => array('min' => 8, 'max' => 50) ), 'confirmed' => array( 'method' => VALID_CONFIRMED, 'message' => 'The password you entered does not match its confirmation.' ), ), ); } } ?>