addToDatabase(String accName, String accUName, String accAddress,String accPw) throws DatabaseException
			{
				if(accName != null && !accName.isEmpty())
				{
					if (accUName != null && !accUName.isEmpty())
					{
						if (accAddress != null && !accAddress.isEmpty())
						{
							if (accPw != null && !accPw.isEmpty())
							{
								 Database db1 = new Database();
								 boolean work = db1.addDetails(accName, accUName, accAddress, accPw);
								 
								 if(work)
								 {
									 RegisterPanel.regFrame.dispose();
								 }
								 
							}
							else
								componentAlert("a Password.");

						}
						else
							componentAlert("an Address.");
					}
					else
						componentAlert("a Username.");
				}
				else
					componentAlert("an Account Name.");
					
			}