merging authentication into index.html