Adding an example and also fixed some bugs with the local strategy logins.