Added flash message upon validation error