added back error validation in payment methods