added log method to controller; correctly failing