check_alignment_id function

Check if the alignment_id is valid.