Fix admin in cli webserver.

Implement login for admin rewrite rule in router.