update api login nad register