rewrite purchase process and allow facebook login