public function checkUsernameLogin() { if (!LoginModel::checkUser(Request::get_post('username'))) { echo 'N'; } else { echo 'Y'; } }