You are probably checking for the wrong condition.
registration IS NOT NULL
means that the field contains "something" but that "something" can also be an empty string.
What you probably want to to check is
and registration !=""
that will make sure that 'registration' contains at least one character.