how to authenticate username and password in c#