Form now able to display error messages