adding authentication and middleware