validation and redirect back for payments