MDL-35817 login: convert html tag to use html_writer and change <a> tag id to be more specific to login