update form with warning messages

hide and show warning messages.