fix styles, dev isValid()