chaged $log to correct method
final edit blog controller code