Made changes to index.html Nav bar.

Added login validation in the controllers.