Suparna : changing flash to flashError or flashSuccess so that it can be styled accordingly