added macros for sign in/sign out