fixed validations and css for transitions