Layout extras and auth checks

Added some auth checks to the layout and added Thymeleaf sec extras