Added convenience functions for loging in via barcode from username and buying a product by name