private bool ValidateUser(Credentials credentials)
 {
     if (!session.Query<Member>().Where(x => x.Credentials.Username == credentials.Username && x.Credentials.Password == credentials.Password).Any())
     {
         return false;
     }
     return true;
 }
        public static bool TryParse(string value, out Credentials credentials)
        {
            string[] values = value.Split(new string[] { Delimiter }, StringSplitOptions.RemoveEmptyEntries);

            if (values.Length == 2)
            {
                credentials = new Credentials
                {
                    Username = values[0],
                    Password = values[1]
                };

                return true;
            }

            credentials = null;
            return false;
        }