Added the Javascript validation in uploadView.php

The Javascript validatePoem function will send messages to users who
need to enter the input.