validation and css changes