Fixed url for failed login
Enabled remote authentication for SaaS
Updated example application to support SaaS