Added login authentication to the renderer and reformatted the script.