Changed login/register to add serialized default array to database.