FIxed layout
Modified middleware loading
Fixed login.ejs