added basic validator and stub for submit button action listener