Added expresss middleware for authentication