added js validation and buy form