Format validation added to ticket reference
Setting unique reference before validation
Merge branch 'validation_and_reference'