Optimized index and login pages

As per Google PageSpeed optimization tips