Added SignIn API and related tests