Minor update

Now when an incorrect password is entered the user will be redirected to
the login page, added comments, changed the index file to php from html