It's called I'm a toddler and I'm going to test my boundaries! What worked with my conure at that age was to not let her be with me unless she was nice. Now, I did have to clip her wings so she couldn't fly to me. I would tell her, "Don't!" and set her on her play gym and ignore her for a couple of minutes. Then we would try again. If she bit me, back she went to be ignored. If she didn't, she got to stay with me. Now you have to do it consistently for them to learn what the bad behavior is. And don't ignore them for more than a few minutes as they don't have a long enough attention span to remember why they are being ignored if you try to do it longer.