Add script to head html head

using the route to load, get the scripts to add to footer.php in order
not to load the unnecessary scripts
renamed view login