PHP error flashes after creating a new user