Use four kinds of flash message types.

success for create or update success
notice for info, such as signed out
alert for warning, such as need sign in
error for create or update failed