M.M.
I have to agree with Amy:
"Do not let her hit you or say mean things to you, even at 2 years old, she is old enough for discipline regarding respect. Be sure your mom and husband also discipline her for disrespecting you, every single time, so that you are not the bad guy. This must be a universal lesson. Be firm and deliver and unpleasant consequence. A nicely spoken request to be nice is not a sufficient consequence, it's just attention. Make sure she knows no one is pleased when she does this."
Reward, reward, reward the good behavior and ignore, ignore, ignore the bad. Negative attention is still attention. And setting boundries is necessary for future place in life.