added form and input text validation