updating and redirecting users