Add message type as class for flash message.

Remove redundant default element setting.