public function create() { if ($test = User::find($_POST['username'], 'username')) { if (password_verify($_POST['password'], $test->password)) { $_SESSION['userid'] = $test->id; Functions::redirect('/clout/home'); } } Functions::redirect(Settings::cloutURL()); }