first model and css added
added validation to model