This is a simple form validator with javascript.