sign in functionality working