text validation & amount format working