Delete duplicate /lib and add a new post route to /login to redirect user to index page