Fix bugg with arendeId validation string

Also added check for period in background documents.