Preview functionality checking the input for errors