This function answers the question whether a given string is a formally valid social security number.
The validation also support the non-proper social security numbers known as "samordningsnummer".
The special case of a null-string will give a return value of 0.
Returns 1 if the social security number is formally valid and 0 otherwise.