Apple will pay $1 million for finding security flaws in its devices