String page = null;
String login = request.getParameter(Commands.LOGIN_LOGIN);
String password = request.getParameter(Commands.LOGIN_PASSWORD);
try {
UserDao userDao = new UserDao();
User user = userDao.findUser(login, password);
if (user.getLogin() != null) {
if (!user.isBan()) {
request.setSessionAttribute(Commands.LOGIN_USER, user);
request.setSessionAttribute(Commands.CHANGE_LANG_LOCALE, Commands.CHANGE_LANG_ENGLISH);
page = ConfigurationManager.INSTANCE.getProperty(ConfigurationManager.MAIN_PAGE_PATH);