Can't make warning message change on form validation