Fix Flash messages

Also fix policies (if the community slug is an integer
it didn't work before).
Display validation errors via flash messages.