add basic javascript validation input form