header and footer seperated and form validator added