changed to store links. added login page

Tested this before on a localhost server. The time it took to get
response was faster than the page would unload. On regular server,
that's not the case Now stores links to be submitted into localStorage,
then will try to submit them next page load