There is a purpose behind seeking such information, the government says, adding that its aim is not to record anyone’s personal details