Updated with a sample of child and modal callback

This can be used to call login and retrieve login token.