Form validation, HTML formatting change

Changed use of PrintWriter.out to PrintWriter.println, added form
validation,