Like rhyguy said, you gotta make sure you put the correct region. Also, you have to make sure you aren't giving the pokemon movesets they can't normally have, the PP can't be over what it would normally be, and their stats can't be wonky. Also, last time I played (weeks ago) I believe all the legendaries were banned from online play.