added validateKey for android