function checkLogin() { $logman = new LogManager(); return $logman->login($_POST['mail'], $_POST['pass']); }