Handled implementation on signing in.
Added tests on sign in handler.