private function loadForm()
{
// don't show the form if someone is logged in
if (FrontendProfilesAuthentication::isLoggedIn()) {
return;
}
$this->frm = new FrontendForm('login', FrontendNavigation::getURLForBlock('Profiles', 'Login'));
$this->frm->addText('email')->setAttributes(array('required' => null, 'type' => 'email'));
$this->frm->addPassword('password')->setAttributes(array('required' => null));
$this->frm->addCheckbox('remember', true);
// parse the form
$this->frm->parse($this->tpl);
}