If you are not the home owner, basically you are not allowed to rent out part of your home or even to write rental receipt for your roommate.
I suggest both names of you and your roommate should be under the contract. Otherwise, although your roommate has renatl receipt from you, he/she not allowed to claim the rent, because receipts were not from the property owner!