Sign in/out implemented mostly