I think you need to change the names of the parameters added to the insert command to match the names specified in the INSERT SQL statement.
Try:
insertcommand.Parameters.Add("@username",MySqlDbType.VarChar,50,"username");
insertcommand.Parameters.Add("@password", MySqlDbType.VarChar, 50, "password");
dariom
2009-10-05 10:44:45