MDL-38722 login_info: Convert renderer to use html_writer