Fix user role editing. Add flash messages.