Update index.js

Added functions for login forms and function to display errors when geolocation is rejected.Error code has not been incorporated into script in locations.html. function showError needs to be called when !success