EDITED I am writing a thesis in report class and should show separate authors for each chapter. While the authors show up, they do not format into authblk format. Does anyone have an idea of what I could be doing wrong? The code for my main tex is
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\graphicspath{{images/}}
\usepackage[a4paper,width=150mm, top=25mm, bottom=25mm, bindingoffset=6mm]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{babel}
\usepackage[style=english]{csquotes}
\usepackage[style=authoryear]{biblatex}
\addbibresource{library.bib}
\usepackage{fixltx2e}
\usepackage{titlesec}
\titleformat{\chapter}[hang]
{\normalfont\huge\bfseries}
{\thechapter}{20pt}{\huge}
\usepackage{authblk}
\title{Something clever}
\author{Name}
\date{}
\begin{document}
\maketitle
\chapter*{Abstract}
\chapter*{Dedication}
\chapter*{Declaration}
\chapter*{Acknowledgment}
\tableofcontents
\chapter{Introduction}
\input{Chapters/introduction}
\chapter{Title of Chapter}
\input{Chapters/chap2}
\chapter{Title of Chapter}
\input{Chapters/chap3}
\chapter{Title of Chapter}
\input{Chapters/chap4}
\printbibliography
\end{document}```
While in the chapters the code is:
\title{something clever}
\author[1]{Name1}
\author[2]{Name2}
\author[1]{Name3}
\author[1]{Name4}
\affil[1]{af1}
\affil[2]{af2}
\date{}
\begin{abstract}
\end{abstract}