rescue flash message working for update method