Fix a bug with the login button

Fixed a bug where clicking the login button would sometimes do nothing
because of an unsuccessful attempt to reload the page.
Added .DS_Store to .gitignore