format error

it can't compile
  [login: "/login"] => do_login!
  [logout: "/logout"] => do_logout!

And  I also want sample of do_logout! and do_login! methods