Switch to using thymeleaf for getting username