added error response to user if failed submission