Forget about error in application.
Lots of things are wrong in your code. Important ones:
1. You have a Response.Redirect while reading a file when connection is Open!
2. Your way to validate a particular user as a valid user (using username, password) is also not right.
First thing I would suggest to you is to read about ADO.NET before coding.
MSDN: ADO.NET[
^]