added validation and css