Layout settings-> DUP CHECK not working

I have created Dup check for field fname. But when I tried adding through patient add screen, it still accepts the same fname. Can anyone make me understand the usage and possible issue in this case.

Thanks in advance.