add check current_user.nil?

simple bug I found.