public function execute()
{
parent::execute();
$this->loadTemplate();
// Check if we're logged in, else redirect to the login form.
if (!FrontendProfilesAuthentication::isLoggedIn()) {
$queryString = $this->URL->getQueryString();
throw new RedirectException('Redirect', new RedirectResponse(Navigation::getURLForBlock('Profiles', 'Login') . '?queryString=' . $queryString));
}
}