removed unused import
only let user purchase if logged