added form validator and styles