if (!"".equals(username)) {
Account account = accountService.findAccount(username);
if (null != account && password.equals(account.getPassword())) {
OnlineAccount onlineAccount = new OnlineAccount();
onlineAccount.setAccount(account.getAccounts());
onlineAccount.setAccountId(account.getId());
onlineAccount.setSessionId(session.getId());
onlineAccount.setAccountStatus(true);
onlineAccountService.addOnlineAccount(onlineAccount);
if (Boolean.getBoolean(rememberMe)) {
Cookie cookieFlag = new Cookie(COOKIE_FLAG, username);