One should believe only what can be chosen to be true or just. Irrational (or unjustified) beliefs should be avoided because they can have disastrous practical consequences.
A democratic state will protect the freedom to hold any beliefs other than those that harm others, such as racism. In particular, it will see to it that no one is harmed just because of her beliefs.