fixed bug with salesforce frontdoor login and did some cleanup work