added validation to new.html