Adding in functional tests for the Locality page. Also added in an alert if an invalid Locality id is provided in the URL. Also added in a potential fix for the session timeout loop issue for local authentication - will need to confirm.