legal rights upon arrest