validation and css formatting