The code look a little bit odd
1. The XML document wasn't loaded
This line
XDocument Loginxml = XDocument.Load();
Should be
XDocument Loginxml = XDocument.Load(FilePath);
2. The LoginCheck is a type IEnumerable, not a boolean, maybe the code should check if the query return any result, I'm assuming each username and password is unique
if (LoginCheck.Count() == 1)
{
}
else
{
}