<link rel="stylesheet" th:href="@{/resources/css/bootstrap.min.css}" />
<script th:src="@{/resources/js/jquery/jquery.json-2.4.min.js}" type="text/javascript" />
<a th:href="@{/logout}" class="signOut"></a>
<form id="login-form" th:action="@{/login}" th:object="${loginBean}">...
<form id="login-form" th:action="@{/login}" th:object="${loginBean}">... <input type="text" value="" th:field="*{username}"></input> <input type="text" value="" th:field="*{user[0].username}"></input> </form>