It will be okay.
1- make sure you aren't triggering hormones (10-14 hours dark sleep, adequate nutrition, no shadowy spaces, head-and neck petting only, lots of chew-toys/activity).
2-Read body language and look into ABA (I harp on this because it works)...don't tip-toe, but don't "poke the pig" (so to speak). If you avoid the triggers, the you can avoid the fall-out.
3- Ignore the bite (in terms of reaction--if it happens, as it was intended to manipulate you in some way)..I know that is easier said than done, but love and confidence are powerful. If you can avoid the bites, do, but IF/WHEN they happen, the worst thing you can do is change what you were doing (excluding times when you may be causing pain or extreme fear). Best-case-scenario, you know your bird well enough to avoid the bite altogether. In the "best" of the worst-case-scenarios, you are bitten quite hard and you don't pull away and respond in a flat tone with an expressionless face (as you have an adult bird who, in this case, is likely doing it to get something out of it).
4. Do not flinch or show fear if posturing occurs---my bird gets a bit moody sometimes (especially with new people whom she likes). She will act sweet and then suddenly jerk her head and act like she is going to bite them...or peck their head (if she is somehow able to con them into letting her up there). My point is, in her case, it is a test. She is in LOVE with my dad because the first time he went to hold her (and she was interested), she walked over and stepped up (and then bit him hard)---he hardly did anything other than mumble "d*amn" ..Didn't scream, didn't leave, didn't flinch etc. I am not saying to force things on her, because reading signals matters, but if your bird is testing (as mine does), then it is very important the she doesn't get a thrill out of it. Fear is not the same as a test, so you will have to read things well enough to know that ahead of time. That having been said, she knows and trusts both you and your husband, so fear and pain are very unlikely causes for this behavior. If a bird is choosing to be near you and wants you to be near them and allows you to touch them, then fear is unlikely (amusing you can be near, touch and interact peacefully at other times).
If she bit when being put back on the perch, make sure she gets back on the perch. That is like a kid crying to get sweets---if you indulge them and give in, they will do it all of the time.
ABA and ABC charting is really helpful---I swear...I think it works better with birds than many people.