Integration with thymeleaf and bug fix for login page in userRepository