Both of them are right. In the first sentence your is a possessive adjective. In the second sentence you is an object pronoun (as in me, you, him, her, etc).
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.