Add front end js validation to response