first cut integration with some code for signin and signout