Authentication middleware added.