* remove extra lines around if/elses * removed the validate function and added field for separate mysql database