<?php
$system->error('The password field is required') if (length $system->param('password') == 0);
$system->error('The password you entered is incorrect') if ($system->param('password') ne $login->user->password);
$login->user->delete;
$system->redirect('/');
?>