add auth function;add signin and sign out