private void responseAPILogin() throws IOException {
String login = request.getParameter("login");
String password = request.getParameter("password");
if (login != null && password != null) {
// Validating login and password
User user = main.dataConnector.getUser(login);
if (user != null && user.password.equals(password)) {
// Login complete
Session session = main.sessionManager.createSession(login);
responseHeaders(ResponseFormat.JSON, 200);