add API documentation
form validation with thymeleaf