added log model
added validation for log model
validation for log cost