add signin function to example app