authentication

Hi I'm trying to disable password login for all users except one, "foo". That way, for example, I can login as "bar" with public key but not password. And I can login as "foo" with password.
I tried this config:
AllowUsers foo bar
Match User !foo
PasswordAuthentication no
Match all
#...