The error is that you have an extra parenthesis in the end of the statement. It should be
var Container=DB.QueryValue("SELECT Username,Password From LoginTable Where Username=@User AND Password=@Pass");
However, it looks like you're storing the password in plain text in the database. If that is true, do not do it. Instead use hashing properly. For example:
Password Storage: How to do it.[
^]