validate([
'username' => 'required',
'password' => 'required',
'passconf' => 'required|matches[password]',
'email' => 'required|valid_email',
])) {
echo view('library/validation/exam1/signup', [
'validation' => $this->validator,
]);
} else {
echo view('library/validation/exam1/success');
}
}
}