(no-ticket) Support validating allowed languages in ProblemController

Change-Id: I0ff35f5fb807edfd07ef6919c3b0b68dabd0d44a