I have a dropdown with values Yes and No.
If the user did not select anything,
then he should get a message that the field is mandatory
If the user has selected the value as Yes.
then he needs to get a different message eg: You are already registered