basic JS validation to input boxes in INDEX and UPLOAD JSP pages