Fix purchase bug

now check for purchased products