fixed the mentioned bug with validation-flash-messages