added functionality for signin and signout