Finish signin and signout functionality