Completed sign in and user state management

Sign in works for active sessions, new sign in session as well as error
in sign in