Can now register and log in, but tasks are not saving correctly