bug fix attempt in LogsController: comment attribute
wrapping Log object in 'if' statement
restructuring Logs#create and undoing last commit