Method does not exist: register